<?php if(!defined('SIDELOADED')) { echo 'Direct access is not allowed.'; }

if(Session::Get('user') > 0) {
  
  Session::Set('user', 0);
  
  Website::View('page', array(
    'title' => 'Logout',
    'content' => Website::View('login/logout')
  ), true);
  
} else {
  
  Website::View('page', array(
    'title' => 'Logout',
    'content' => Website::View('login/nologout')
  ), true);
  
}
